package cn.bdqn.domain;

import java.io.Serializable;

/**
 * 货物实体类
 * @author dkj
 */
public class Cargo implements Serializable {

    /**
     * id
     */
    private Integer id;

    /**
     * 货物名字
     */
    private String cargoName;

    /**
     * 货物数量
     */
    private Integer cargoNumber;

    /**
     * 货物重量
     */
    private Integer cargoWeight;


    /**
     * 货物类型  1.易碎  2.正常
     */
    private Integer cargoType;

    /**
     * 货物体积
     */
    private Integer cargoBulk;


    /**
     * 货物具体位置
     */
    private String storageDistrict;


    /**
     * 状态  1.正常  2，缺货
     */
    private Integer cargoState;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCargoName() {
        return cargoName;
    }

    public void setCargoName(String cargoName) {
        this.cargoName = cargoName == null ? null : cargoName.trim();
    }

    public Integer getCargoNumber() {
        return cargoNumber;
    }

    public void setCargoNumber(Integer cargoNumber) {
        this.cargoNumber = cargoNumber;
    }

    public Integer getCargoWeight() {
        return cargoWeight;
    }

    public void setCargoWeight(Integer cargoWeight) {
        this.cargoWeight = cargoWeight;
    }

    public Integer getCargoType() {
        return cargoType;
    }

    public void setCargoType(Integer cargoType) {
        this.cargoType = cargoType;
    }

    public Integer getCargoBulk() {
        return cargoBulk;
    }

    public void setCargoBulk(Integer cargoBulk) {
        this.cargoBulk = cargoBulk;
    }

    public String getStorageDistrict() {
        return storageDistrict;
    }

    public void setStorageDistrict(String storageDistrict) {
        this.storageDistrict = storageDistrict == null ? null : storageDistrict.trim();
    }

    public Integer getCargoState() {
        return cargoState;
    }

    public void setCargoState(Integer cargoState) {
        this.cargoState = cargoState;
    }

    @Override
    public String toString() {
        return "Cargo{" +
                "id=" + id +
                ", cargoName='" + cargoName + '\'' +
                ", cargoNumber=" + cargoNumber +
                ", cargoWeight=" + cargoWeight +
                ", cargoType=" + cargoType +
                ", cargoBulk=" + cargoBulk +
                ", storageDistrict='" + storageDistrict + '\'' +
                ", cargoState=" + cargoState +
                '}';
    }
}
